/***********************************************************************
 * Module:  student.java
 * Author:  lenovo
 * Purpose: Defines the Class student
 ***********************************************************************/

import java.util.*;

/** @pdOid 51634102-24b5-422c-b595-7158b5b9d0f4 */
public class student {
   /** 学生编号
    * 
    * @pdOid 15f577c4-e105-4e7f-8255-3a240076fff5 */
   public int sid;
   /** 学生姓名
    * 
    * @pdOid 817b57cc-4578-4c18-8dc0-9aed1dc67022 */
   public java.lang.String sname;
   /** @pdOid 5d28c829-9717-4d66-9cdf-be4a867df6e5 */
   public java.lang.String sclass;
   /** @pdOid 4e22a7f4-4efe-42cc-977d-f0528060d1ad */
   public java.lang.String snumbr;
   
   /** @pdRoleInfo migr=no name=tb_cource assc=relationship1 coll=java.util.Collection impl=java.util.HashSet mult=0..* */
   public java.util.Collection<tb_cource> tb_cource;
   
   
   /** @pdGenerated default getter */
   public java.util.Collection<tb_cource> getTb_cource() {
      if (tb_cource == null)
         tb_cource = new java.util.HashSet<tb_cource>();
      return tb_cource;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorTb_cource() {
      if (tb_cource == null)
         tb_cource = new java.util.HashSet<tb_cource>();
      return tb_cource.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newTb_cource */
   public void setTb_cource(java.util.Collection<tb_cource> newTb_cource) {
      removeAllTb_cource();
      for (java.util.Iterator iter = newTb_cource.iterator(); iter.hasNext();)
         addTb_cource((tb_cource)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newTb_cource */
   public void addTb_cource(tb_cource newTb_cource) {
      if (newTb_cource == null)
         return;
      if (this.tb_cource == null)
         this.tb_cource = new java.util.HashSet<tb_cource>();
      if (!this.tb_cource.contains(newTb_cource))
         this.tb_cource.add(newTb_cource);
   }
   
   /** @pdGenerated default remove
     * @param oldTb_cource */
   public void removeTb_cource(tb_cource oldTb_cource) {
      if (oldTb_cource == null)
         return;
      if (this.tb_cource != null)
         if (this.tb_cource.contains(oldTb_cource))
            this.tb_cource.remove(oldTb_cource);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllTb_cource() {
      if (tb_cource != null)
         tb_cource.clear();
   }

}